a, b, c = map(int, input().split())

if a >= b and b >= c:
    max = a
    min = c
elif a >= c and c >= b:
    max = a
    min = b
elif b >= a and a >= c:
    max = b
    min = c
elif b >= c and c >= a:
    max = b
    min = a
elif c >= a and a >= b:
    max = c
    min = b
elif c >= b and b >= a:
    max = c
    min = a

print('The maximum number is :', max)
print('The minimum number is :', min)
